arm/irq: Reorder check when the IRQ is already used by someone
authorOleksandr Tyshchenko <olekstysh@gmail.com>
Fri, 2 Dec 2016 16:38:16 +0000 (18:38 +0200)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 6 Dec 2016 18:32:11 +0000 (10:32 -0800)
commit02fea427a6ac496d642a8055f5f168e6f985a4f6
tree6018a927f59ab3b08ddc4c739a1457d1fd96cbf6
parent9f954a5e90414d10632e6c2fef5a33ea8a4a1e4e
arm/irq: Reorder check when the IRQ is already used by someone

Call irq_get_domain for the IRQ we are interested in
only after making sure that it is the guest IRQ to avoid
ASSERT(test_bit(_IRQ_GUEST, &desc->status)) triggering.

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Signed-off-by: Andrii Anisov <andrii_anisov@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/irq.c